<%@ page pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.base.DatabaseObject"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="com.base.Config"%>
<%@include file="inc-header.jsp"%>
    <div class="main">
        <div class="item mag0">
	<%@include file="inc-menu.jsp"%>
 <div class="portlet" id="yw0">
<div class="portlet-content">
    <div class="bg_user">
        <ul class="list_style">
            <li class="user-name clearfix">
                <p class="fl">Hi:  
                </p>
            </li>
       </ul>
    </div>
    </div>
</div> 
        </div>
        <div class="bg_gray">
            <ul class="list_style clearfix">
                <li class="fl active">
                    <a class="block" title="" href="ser-gameonline.jsp">Game Online</a>
                </li>
                <li class="fl">
                    <a class="block" title="" href="ser-gameoff.jsp">Game Offline</a>
                </li>
            </ul>
        </div>
        <div class="sub_list">
            <ul class="list_style clearfix">
                <li class="fl active"><a class="block" title="" href="&type=new">Mới</a></li>
                <li class="fl "><a class="block" title="" href="&type=hot">Hot</a></li>
            </ul>
        </div>
        <div class="item">
            <div class="list-game">
                <ul class="list_style">
                    <li>
                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
			<%
			String catGameParentId2 = Config.getStringProperty("CAT_GAMEONLINE_PARENT_ID", "3627", false);
			if (!StringTool.isEmptyOrNul(catGameParentId2)) {
			ArrayList<DatabaseObject> gameList2 = contentDAO.getParentGameOnline(new BigDecimal(catGameParentId2), 1, 6);
			if (gameList2 != null && !gameList2.isEmpty()) {%>
			<%
				for (DatabaseObject game : gameList2) {%>
				<tr>
					<td width="85">
				        <a class="data_link" title="" href="/ca-nhan/mobrunner-t1d180"><img class="img-80-80" src="<%=imagePath + game.getAttribute().get("avatar_image") %>" alt="<%=game.getAttribute().get("name") %>" ></a>
				    </td>
					<td class="info-data" valign="top">
					<a class="data_link" title=""
					href=""><%=game.getAttribute().get("name") %></a>
			        <p>
			        <% 	String stronline = game.getAttribute().get("description").toString();
			        	String[] partonl= stronline.split("\\.");
			         %><%=partonl[0]%>...</p>
                     
					<p><strong><span class="cl999">Loại game:</span> Online</strong></p>
                     <p><a title="" href="/ca-nhan/mobrunner-t1d180" class="ic-money clf60"><strong>Kinh doanh ngay</strong></a></p>
					</td>
				</tr>
				<%}}}%>
                    </table>
                    </li>
                </ul>
            </div>
        </div>
<div class="portlet" id="yw1">
<div class="portlet-content">
<p class="mag0 link-top">
    <a title="" href="#">Lên đầu trang</a>
</p>

<%@include file="inc-footter.jsp"%>